<template>
  <el-dialog v-model="centerDialogVisible" center title="删除员工" width="30%">
    <span
    >是否确认要删除该员工?</span
    >
    <template #footer>
      <span class="dialog-footer">
        <el-button @click="centerDialogVisible = false">取消</el-button>
        <el-button
            type="primary"
            @click="centerDialogVisible = false"
        >确认</el-button
        >
      </span>
    </template>
  </el-dialog>
</template>
<script lang="ts" setup>
import {ref} from 'vue'

const centerDialogVisible = ref(false)

const OpenDialog = () => {
  centerDialogVisible.value = true
}

defineExpose({
  OpenDialog
})

</script>
<style scoped>
.dialog-footer button:first-child {
  margin-right: 10px;
}
</style>
